package com.example.systema.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class ProductController {
    /*@RequiresPermissions("product:list")*/
    @RequestMapping("/product/toList")
    public String toList() {
        return "/product/list";
    }

    /*@RequiresPermissions("product:add")*/
    @RequestMapping("/product/toAdd")
    public String toAdd() {
        return "/product/add";
    }

    @RequiresPermissions("product:update")
   /* @RequestMapping("/product/toUpdate")*/
    public String toUpdate() {
        return "/product/update";
    }

}
